package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 行政区划
 *
 * @author pig
 * @date 2023-08-25 15:22:34
 */
@Data
@TableName("code_area")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "行政区划")
public class CodeAreaEntity extends Model<CodeAreaEntity> {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

	/**
	* 父级ID
	*/
    @Schema(description="父级ID")
    private Long pid;

	/**
	* 代码
	*/
    @Schema(description="代码")
    private String code;

	/**
	* 名称
	*/
    @Schema(description="名称")
    private String name;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String comments;

	/**
	* 排序号
	*/
    @Schema(description="排序号")
    private Integer sortNumber;

	/**
	* 等级
	*/
    @Schema(description="等级")
    private Integer level;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 修改时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;
 
	/**
	* delFlag
	*/
    @TableLogic
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="delFlag")
    private String delFlag;
}